<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>RobotClient: ClientMain.h源文件</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">RobotClient
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- 制作者 Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_client_main_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">ClientMain.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_client_main_8h.html">浏览该文件的文档。</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// *** ADDED BY HEADER FIXUP ***</span>
<a name="l00002"></a>00002 <span class="preprocessor">#include &lt;wx/xml/xml.h&gt;</span>
<a name="l00003"></a>00003 <span class="comment">// *** END ***</span>
<a name="l00004"></a>00004 <span class="comment">// *** ADDED BY HEADER FIXUP ***</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;wx/event.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;wx/string.h&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;wx/window.h&gt;</span>
<a name="l00008"></a>00008 <span class="comment">// *** END ***</span>
<a name="l00009"></a>00009 <span class="comment">/***************************************************************</span>
<a name="l00010"></a>00010 <span class="comment"> * Name:      ClientMain.h</span>
<a name="l00011"></a>00011 <span class="comment"> * Purpose:   Defines Application Frame</span>
<a name="l00012"></a>00012 <span class="comment"> * Author:    sleepiforest (248023406@qq.com)</span>
<a name="l00013"></a>00013 <span class="comment"> * Created:   2011-11-28</span>
<a name="l00014"></a>00014 <span class="comment"> * Copyright: sleepiforest (http://weibo.com/sleepiforest)</span>
<a name="l00015"></a>00015 <span class="comment"> * License:</span>
<a name="l00016"></a>00016 <span class="comment"> **************************************************************/</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef CLIENTMAIN_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define CLIENTMAIN_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="comment">//(*Headers(ClientFrame)</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;wx/sizer.h&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;wx/menu.h&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;wx/textctrl.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;wx/panel.h&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;wx/frame.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;wx/statusbr.h&gt;</span>
<a name="l00028"></a>00028 <span class="comment">//*)</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;wx/socket.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;<a class="code" href="_text_log_8h.html">TextLog.h</a>&quot;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="_add_query_dlg_8h.html">AddQueryDlg.h</a>&quot;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;<a class="code" href="_connection_dlg_8h.html">ConnectionDlg.h</a>&quot;</span>
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="class_client_frame.html">00034</a> <span class="keyword">class </span><a class="code" href="class_client_frame.html">ClientFrame</a>: <span class="keyword">public</span> wxFrame
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036     <span class="keyword">public</span>:
<a name="l00037"></a>00037         <a class="code" href="class_client_frame.html#a168b53f469815f6e4a653ee767b84e37">ClientFrame</a>(wxWindow* parent);
<a name="l00038"></a>00038         <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#ae39beabd4dd0309c7b519f5269d18c2e">Show</a>();
<a name="l00039"></a>00039         <span class="keyword">virtual</span> <a class="code" href="class_client_frame.html#a74ce0b58508f68e4eeabc083ff57b3ba">~ClientFrame</a>();
<a name="l00040"></a>00040     <span class="keyword">private</span>:
<a name="l00041"></a>00041                 <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#a24e870523866761377b653818a65680e">OnSocketEvent</a>(wxSocketEvent&amp; event);
<a name="l00042"></a>00042                 <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#a62f7c461f3a4da6d7be83c21cab54730">OnRead</a>();
<a name="l00043"></a>00043                 <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#a757a532858d222e9eb2e04c2034ca047">OnLost</a>();
<a name="l00044"></a>00044                 <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#a6584f5d71232ac25d30b9f6605672ca7">OnSetting</a>(wxXmlNode *node);
<a name="l00045"></a>00045                 <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#a15d6c241ccf7fa8157163cb9a9e109e9">OnSendRespond</a>(wxXmlNode *node);
<a name="l00046"></a>00046                 <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#a81453de53c35bfb78e52bef78825c941">OnMessage</a>(wxXmlNode *node);
<a name="l00047"></a>00047                 <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#a165275bb47654058c5ec28375a94f3bf">SendMsg</a>(wxString msg);
<a name="l00048"></a>00048         <span class="comment">//(*Handlers(ClientFrame)</span>
<a name="l00049"></a>00049         <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#ad5585141cf48f0f17abdd337add3564e">OnQuit</a>(wxCommandEvent&amp; event);
<a name="l00050"></a>00050         <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#aaee6a026a7b3f3f942b733f0a738090e">OnAbout</a>(wxCommandEvent&amp; event);
<a name="l00051"></a>00051         <span class="keywordtype">void</span> <a class="code" href="class_client_frame.html#a2d6eb0b6ff71d5d06d6064d498646636">OntxEditText</a>(wxCommandEvent&amp; event);
<a name="l00052"></a>00052         <span class="comment">//*)</span>
<a name="l00053"></a><a class="code" href="class_client_frame.html#a2362a0fedb48497f056610d232d245b3">00053</a>                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">long</span> <a class="code" href="class_client_frame.html#a2362a0fedb48497f056610d232d245b3">SOCKET_ID</a>;
<a name="l00054"></a>00054         <span class="comment">//(*Identifiers(ClientFrame)</span>
<a name="l00055"></a><a class="code" href="class_client_frame.html#acebe7921e9b05c387002d959d66d611f">00055</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">long</span> <a class="code" href="class_client_frame.html#acebe7921e9b05c387002d959d66d611f">ID_PANEL3</a>;
<a name="l00056"></a><a class="code" href="class_client_frame.html#adb5644b1b7f98120094189f783dfb819">00056</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">long</span> <a class="code" href="class_client_frame.html#adb5644b1b7f98120094189f783dfb819">ID_TEXTCTRL1</a>;
<a name="l00057"></a><a class="code" href="class_client_frame.html#afe54a6d2afe793a099740eb5174e4c7d">00057</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">long</span> <a class="code" href="class_client_frame.html#afe54a6d2afe793a099740eb5174e4c7d">ID_PANEL2</a>;
<a name="l00058"></a><a class="code" href="class_client_frame.html#ad55cf2202f66b48138ceeb2fefc1ffa5">00058</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">long</span> <a class="code" href="class_client_frame.html#ad55cf2202f66b48138ceeb2fefc1ffa5">ID_TEXTCTRL2</a>;
<a name="l00059"></a><a class="code" href="class_client_frame.html#ae990ba416a184c4f4114db0ca6ad32b2">00059</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">long</span> <a class="code" href="class_client_frame.html#ae990ba416a184c4f4114db0ca6ad32b2">ID_PANEL1</a>;
<a name="l00060"></a><a class="code" href="class_client_frame.html#a5551cbc3667271a9117d2ebce5ed4abd">00060</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">long</span> <a class="code" href="class_client_frame.html#a5551cbc3667271a9117d2ebce5ed4abd">idMenuQuit</a>;
<a name="l00061"></a><a class="code" href="class_client_frame.html#af1a7efc4a544f2e40572b25783106c49">00061</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">long</span> <a class="code" href="class_client_frame.html#af1a7efc4a544f2e40572b25783106c49">idMenuAbout</a>;
<a name="l00062"></a><a class="code" href="class_client_frame.html#ab462d441645b55c38f049d9227cb200d">00062</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">long</span> <a class="code" href="class_client_frame.html#ab462d441645b55c38f049d9227cb200d">ID_STATUSBAR1</a>;
<a name="l00063"></a>00063         <span class="comment">//*)</span>
<a name="l00064"></a>00064 
<a name="l00065"></a>00065         <span class="comment">//(*Declarations(ClientFrame)</span>
<a name="l00066"></a><a class="code" href="class_client_frame.html#a93b186d5ba94f84201708c4958c47d2a">00066</a>         wxTextCtrl* <a class="code" href="class_client_frame.html#a93b186d5ba94f84201708c4958c47d2a">txEdit</a>;
<a name="l00067"></a><a class="code" href="class_client_frame.html#a850b7c297c369ff8de0f46d641e434ec">00067</a>         wxPanel* <a class="code" href="class_client_frame.html#a850b7c297c369ff8de0f46d641e434ec">Panel1</a>;
<a name="l00068"></a><a class="code" href="class_client_frame.html#ade723ec693dda94fcfbea8b28a3632bb">00068</a>         wxPanel* <a class="code" href="class_client_frame.html#ade723ec693dda94fcfbea8b28a3632bb">Panel3</a>;
<a name="l00069"></a><a class="code" href="class_client_frame.html#a31169d9a70aa2ffabdd02c41f5c6fcdb">00069</a>         wxStatusBar* <a class="code" href="class_client_frame.html#a31169d9a70aa2ffabdd02c41f5c6fcdb">StatusBar1</a>;
<a name="l00070"></a><a class="code" href="class_client_frame.html#a4de44e31649e678cb7c59b569de86e01">00070</a>         wxPanel* <a class="code" href="class_client_frame.html#a4de44e31649e678cb7c59b569de86e01">Panel2</a>;
<a name="l00071"></a><a class="code" href="class_client_frame.html#a654403e0bfd0aef75941a9162eb42003">00071</a>         <a class="code" href="class_text_log.html" title="显示聊天对白的文本框">TextLog</a>* <a class="code" href="class_client_frame.html#a654403e0bfd0aef75941a9162eb42003">txLog</a>;
<a name="l00072"></a>00072         <span class="comment">//*)</span>
<a name="l00073"></a><a class="code" href="class_client_frame.html#a992ddfe167c0db1bd16f67f715332888">00073</a>         wxString <a class="code" href="class_client_frame.html#ad6d934ab7eb18977ad24a2b12eb5db09">name</a>,<a class="code" href="class_client_frame.html#a992ddfe167c0db1bd16f67f715332888">serverName</a>;
<a name="l00074"></a><a class="code" href="class_client_frame.html#a88f567ea6ada7e5c88da0b2ddaa9b3a4">00074</a>         <a class="code" href="class_connection_dlg.html">ConnectionDlg</a> <a class="code" href="class_client_frame.html#a88f567ea6ada7e5c88da0b2ddaa9b3a4">connectDlg</a>;
<a name="l00075"></a><a class="code" href="class_client_frame.html#a375144381a28a6517559df34ab4fcdf6">00075</a>         <a class="code" href="class_add_query_dlg.html">AddQueryDlg</a> <a class="code" href="class_client_frame.html#a375144381a28a6517559df34ab4fcdf6">queryDlg</a>;
<a name="l00076"></a><a class="code" href="class_client_frame.html#a60f28a5555d341b0f0eb2f0ba6b6f2a0">00076</a>                 wxSocketBase* <a class="code" href="class_client_frame.html#a60f28a5555d341b0f0eb2f0ba6b6f2a0">sock</a>;
<a name="l00077"></a>00077         DECLARE_EVENT_TABLE()
<a name="l00078"></a>00078 };
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 <span class="preprocessor">#endif // CLIENTMAIN_H</span>
</pre></div></div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>命名空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>宏定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_client_main_8h.html">ClientMain.h</a>      </li>

    <li class="footer">Generated at 2012年一月9日 星期一 09:15:28 for RobotClient by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
